/**
 * 告警分布图 api
 */

import request from '@/utils/request';
// 查询告警类型占比信息
export function getAlarmRatioMap(query: any): ApiPromise {
	return request({
		url: '/business-monitor/alarm/busiAlarmTrend/getAlarmRatio',
		method: 'get',
		params: query,
		headers: {
			VERSION: 'lishilei',
		},
	});
}

// 查询告警分类详情
export function getAlarmRatioDetail(query: any): ApiPromise {
	return request({
		url: '/business-monitor/alarm/busiAlarmTrend/getTypeProportion',
		method: 'get',
		params: query,
		headers: {
			VERSION: 'lishilei',
		},
	});
}

// 查询节点占比信息
export function getNodeRatioMap(query: any): ApiPromise {
	return request({
		url: '/business-monitor/alarm/busiAlarmTrend/getNodeRatio',
		method: 'get',
		params: query,
		headers: {
			VERSION: 'lishilei',
		},
	});
}

// 查询节点占比信息网端详情
export function getNodeRatioDetail(query: any): ApiPromise {
	return request({
		url: '/business-monitor/alarm/busiAlarmTrend/getNodeProportion',
		method: 'get',
		params: query,
		headers: {
			VERSION: 'lishilei',
		},
	});
}

// 导出列表Excel文件
export function exportList(data: any): ApiPromise {
	return request({
		url: '/business-monitor/alarm/busiAlarmTrend/export',
		method: 'post',
		data: data,
		//timeout: 60000,
		responseType: 'blob',
		headers: {
			VERSION: 'lishilei',
		},
	});
}
